package com.ruoyi.common.exportDto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.smy.MallOrderDetail;
import com.ruoyi.common.dto.IData;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 导出Excel表格时使用的传输数据
 * @classname MallOrderDto
 * @author ZhanCheng.Li
 * @date 2022/10/22 14:55
 * @version 1.0.0
 */
@Data
public class MallOrderDto implements IData {

	@Excel(name = "订单编号",sort = 1)
	private String orderno;

	@Excel(name = "下单人名称",sort = 1)
	private String memberName;

	@Excel(name = "下单人手机号",sort = 1)
	private String memberPhone;

	@Excel(name = "商户名称",sort = 2)
	private String merchantName;

	@Excel(name = "商户手机号码",sort = 3)
	private String merchantPhone;

	@Excel(name = "收货人",sort = 4)
	private String concatname;

	@Excel(name = "收货电话",sort = 5)
	private String concatphone;

	@Excel(name = "收货地址",sort = 6)
	private String deliveryaddress;

	@Excel(name = "下单时间",dateFormat = "yyyy-MM-dd HH:mm:ss",sort = 7)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createtime;

	@Excel(name = "订单总价",sort = 8)
	private Double price;

	@Excel(name = "支付方式",readConverterExp="1=微信支付,2=支付宝支付,3=余额组合微信支付,4=购物卡支付,5=线下转账,6=余额全额支付",sort = 9)
	private Integer paymethod;

	@Excel(name = "支付状态",readConverterExp="1=支付成功,2=未支付,3=预售订单订金已支付",sort = 10)
	private Integer paystatus;

	@Excel(name = "订单状态",readConverterExp="-10=待支付,-20=免费预约单,100=新订单,150=已接单,180=已到场,500=已完成,800=取消需支付,1000=已取消,2000=已评价",sort = 11)
	private Integer status;

	@Excel(name = "商品名称",sort = 12)
	private String goodsName;

	@Excel(name = "商品单价",sort = 12)
	private Double unitprice;

	@Excel(name = "购买数量",sort = 13)
	private Long goodsQty;


//	@Excel(name = "收货区县")
//	private String deliveryarea;

//	@Excel(name = "收货市")
//	private String deliverycity;

	private String deliverymobile;

	private String deliveryname;

//	@Excel(name = "收货省")
//	private String deliveryprovince;

	private Date deliverytime;

	private String expresscompany;

	private Integer expressstatus;

	private String expressesno;

	private Date finishtime;

	private Double freightprice;

//	@Excel(name = "购买数量")
//	private Integer goodsquantity;

	private Double goodssubtotalprice;

	private Integer isaftersale;



	private Date paytime;


	private Date receipttime;

	private String shippingaddress;

	private Integer shippingmethod;


	private Long memberId;

	private Long merchantId;

	private Integer haveinvoice;

	private String invoicetfn;

	private String invoicetitle;

	private Integer invoicetitletype;

	private Integer invoicetype;

	private Integer havecoupon;

	private Long couponId;

	private Integer marketingtype;

	private Long giftactivityId;

	private Integer havashoppingcardrecord;

	private Double shoppingcardmoney;

	private Long shoppingcardrecordId;

	private Double finalpaymentprice;

	private Double prepaiddepositprice;

	private String presellretainagepayno;

	private Date presellretainagepaytime;

	private String presellsubscriptionpayno;

	private Date presellsubscriptionpaytime;

	private Integer issupplier;

	private Double blanceprice;

	private Integer isblanceorder;

	private String supplierbankaccountholder;

	private String supplierbankcardno;

	private String supplierbankname;

	private String bankcardpaynote;

	private String bankcardpayphoto;

	private Integer deliverytype;

	private Integer isissuingtype;

	private Long supplierId;

	private String expresscode;

	private Integer iscloudstoredelivery;

	private Integer applydistributor;

	private Integer distributionorder;

	private Long distributorId;

	private Double distributionprice;

	private Integer distributorsource;

	private Long liveSessionId;

	private Integer apppay;

	private Date checktime;

	private Double liveprice;

	private Double money;

	private String runnerphone;

	private String ordertype;

	private String standbymobile;

	private String runnername;

	private String deliverypca;

	private Double deliverylat;

	private Double deliverylon;

	private Double balloonfee;

	private String bookingdate;

	private String bookingdatetime;

	private Double cleanfee;

	private Double deskfee;

	private Double dishamount;

	private Long linkorderid;

	private String needballoon;

	private String needclean;

	private String needdesk;

	private String needinvoice;

	private Double serviceamount;

	private Double payamount;

	private String needmaterial;

	private String diningway;


	private String needroom;

	private Double shopamount;

	private String checkindate;

	private String livingdate;

	private Integer couponnum;

	private String eattoday;

	/**
	 * 加盟商区域
	 */
	private String joinArea;

	/**
	 * 开始日期
	 */
	private Date startDate;

	/**
	 * 结束日期
	 */
	private Date endDate;

	/**
	 * 根据merchantId关联查出商家名称/商家联系电话
	 */


	/**
	 * 订单明细行
	 */
	private List<MallOrderDetail> orderDetailList;

	/**
	 * 根据memberID关联查询下单人名称/联系电话
	 */






}
